<h1>Listing radusergroups</h1>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Username</th>
      <th>Groupname</th>
      <th>Priority</th>
      <th>actions</th>
    </tr>
  </thead>

  <tbody>
    <% @radusergroups.each do |radusergroup| %>
      <tr>
        <td><%= radusergroup.username %></td>
        <td><%= radusergroup.groupname %></td>
        <td><%= radusergroup.priority %></td>
        <td><%= link_to btn_icon(:edit), edit_radusergroup_path(radusergroup) %>
        <%= link_to btn_icon(:trash), radusergroup, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Radusergroup', new_radusergroup_path, class: "btn btn-primary btn-mini"%>
